.class Lrexsee/core/widget/DivDialog$3;
.super Ljava/lang/Object;
.source "DivDialog.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/core/widget/DivDialog;->setStyle(Ljava/lang/String;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/core/widget/DivDialog;

.field private final synthetic val$style:Ljava/lang/String;


# direct methods
.method constructor <init>(Lrexsee/core/widget/DivDialog;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iput-object p2, p0, Lrexsee/core/widget/DivDialog$3;->val$style:Ljava/lang/String;

    .line 190
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 8

    .prologue
    const-string v5, "true"

    .line 196
    :try_start_0
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v6, p0, Lrexsee/core/widget/DivDialog$3;->val$style:Ljava/lang/String;

    invoke-virtual {v5, v6}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    .line 197
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->div:Lrexsee/core/widget/Div;

    invoke-virtual {v5}, Lrexsee/core/widget/Div;->setDivStyleWithoutLayoutParams()V

    .line 199
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    invoke-virtual {v5}, Lrexsee/core/widget/DivDialog;->getWindow()Landroid/view/Window;

    move-result-object v4

    .line 200
    .local v4, "window":Landroid/view/Window;
    invoke-virtual {v4}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    .line 201
    .local v0, "attr":Landroid/view/WindowManager$LayoutParams;
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getAlpha()F

    move-result v5

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->alpha:F

    .line 202
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v5, v5, Lrexsee/core/style/StyleSheet;->window_dim_amount:Ljava/lang/String;

    invoke-static {v5}, Ljava/lang/Float;->parseFloat(Ljava/lang/String;)F

    move-result v5

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F

    .line 203
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getWindowGravity()I

    move-result v5

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->gravity:I

    .line 204
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getTop()I

    move-result v3

    .line 205
    .local v3, "top":I
    if-gez v3, :cond_0

    .line 206
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v5, v5, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget v5, v5, Lrexsee/core/application/RexseeApplication;->screenHeight:I

    add-int/2addr v3, v5

    .line 208
    :cond_0
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getLeft()I

    move-result v2

    .line 209
    .local v2, "left":I
    if-gez v2, :cond_1

    .line 210
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v5, v5, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget v5, v5, Lrexsee/core/application/RexseeApplication;->screenWidth:I

    add-int/2addr v2, v5

    .line 212
    :cond_1
    if-eqz v2, :cond_2

    iput v2, v0, Landroid/view/WindowManager$LayoutParams;->x:I

    .line 213
    :cond_2
    if-eqz v3, :cond_3

    iput v3, v0, Landroid/view/WindowManager$LayoutParams;->y:I

    .line 214
    :cond_3
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getWidth()I

    move-result v5

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->width:I

    .line 215
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getHeight()I

    move-result v5

    iput v5, v0, Landroid/view/WindowManager$LayoutParams;->height:I

    .line 216
    invoke-virtual {v4, v0}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    .line 218
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v6, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v6, v6, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v6, v6, Lrexsee/core/style/StyleSheet;->window_cancelable:Ljava/lang/String;

    const-string v7, "true"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    invoke-virtual {v5, v6}, Lrexsee/core/widget/DivDialog;->setCancelable(Z)V

    .line 219
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v6, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v6, v6, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v6, v6, Lrexsee/core/style/StyleSheet;->window_outside_cancelable:Ljava/lang/String;

    const-string v7, "true"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v6

    invoke-virtual {v5, v6}, Lrexsee/core/widget/DivDialog;->setCanceledOnTouchOutside(Z)V

    .line 221
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v5, v5, Lrexsee/core/style/StyleSheet;->visibility:Ljava/lang/String;

    const-string v6, "hidden"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-nez v5, :cond_4

    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v5, v5, Lrexsee/core/style/StyleSheet;->visibility:Ljava/lang/String;

    const-string v6, "gone"

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_5

    .line 222
    :cond_4
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    invoke-virtual {v5}, Lrexsee/core/widget/DivDialog;->hide()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 231
    .end local v0    # "attr":Landroid/view/WindowManager$LayoutParams;
    .end local v2    # "left":I
    .end local v3    # "top":I
    .end local v4    # "window":Landroid/view/Window;
    :goto_0
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    const/4 v6, 0x1

    invoke-static {v5, v6}, Lrexsee/core/widget/DivDialog;->access$9(Lrexsee/core/widget/DivDialog;Z)V

    .line 232
    return-void

    .line 224
    .restart local v0    # "attr":Landroid/view/WindowManager$LayoutParams;
    .restart local v2    # "left":I
    .restart local v3    # "top":I
    .restart local v4    # "window":Landroid/view/Window;
    :cond_5
    :try_start_1
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    invoke-virtual {v5}, Lrexsee/core/widget/DivDialog;->show()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    .line 227
    .end local v0    # "attr":Landroid/view/WindowManager$LayoutParams;
    .end local v2    # "left":I
    .end local v3    # "top":I
    .end local v4    # "window":Landroid/view/Window;
    :catch_0
    move-exception v5

    move-object v1, v5

    .line 228
    .local v1, "e":Ljava/lang/Exception;
    iget-object v5, p0, Lrexsee/core/widget/DivDialog$3;->this$0:Lrexsee/core/widget/DivDialog;

    iget-object v5, v5, Lrexsee/core/widget/DivDialog;->mBrowser:Lrexsee/core/browser/Browser;

    const-string v6, "Div"

    invoke-virtual {v5, v6, v1}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method
